<!--继承基文件-->
{% extends "base.html" %}
{% load static %}
<!--标题-->
{% block title %} 编辑业务线 {% endblock title %}
{% block user %}{% if request.session.user %}{{ request.session.user }}{% else %} administrator{% endif %}{% endblock %}

<!--内容-->
{% block content %}
    <div class="right-product my-index right-full">
        <div class="container-fluid">
            <div class="info-center">
                {% include 'content_head.html' %}

                <div class="content-list">
                    <div class="row newslist" style="margin-top:20px;">
                        <div class="col-md-12">
                            <div class="panel panel-info mystyle-panel">
                                <div class="panel-heading">
                                    编辑业务线
                                    <div class="caret"></div>
                                    <a href="#" class="pull-right"><span class="glyphicon glyphicon-refresh"></span></a>
                                </div>
                                <div class="panel-body">
                                    <form class="form-horizontal" id="editServiceLine" action="" method="post"
                                          onsubmit="return editServiceLine_check();">
                                        {% csrf_token %}
                                        <div class="form-group" style="margin-top: 10px;">
                                            <label for="editServiceLineName"
                                                   class="col-sm-2 control-label">业务线名称</label>
                                            <div class="col-sm-10">
                                                <input type="text" value="{{ serviceLine_obj.name }}"
                                                       class="form-control myInput"
                                                       id="editServiceLineName" name="editServiceLineName">
                                                <span class="myGray">必须为4-16位字符</span>
                                            </div>
                                        </div>
                                        <div class="form-group" style="margin-top: 10px;">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <span style="color:red;">{{ error }}</span>
                                            </div>
                                        </div>
                                        <div class="form-group" style="margin-top: 10px;">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <input type="submit" class="btn btn-primary myInput" value="编辑">
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock content %}

<!--js文件-->
{% block jsFiles %}
    <script src="{% static 'js/myEditServiceLine.js' %}"></script>
{% endblock jsFiles %}